package com.keba.lamp.complaint.vo.update;

import com.keba.basic.base.entity.SuperEntity;
import com.keba.lamp.complaint.vo.result.EvidenceComponentResultVO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 表单修改方法VO
 * 案件类型和组件库关系表（证据目录）
 * </p>
 *
 * @author chaowu.wang
 * @date 2025-03-27 22:17:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode
@Builder
@Schema(description = "案件类型和组件库关系表（证据目录）")
public class EvidenceComponentCaseTypeRelUpdateVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    @Schema(description = "租户ID")
    private Long tenantId;

    /**
     * 业务类型[01-起诉状，02-答辩状 ]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.BIZ_TYPE)
     */
    @Schema(description = "业务类型[01-起诉状，02-答辩状 ]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.BIZ_TYPE)")
    @Size(max = 50, message = "业务类型[01-起诉状，02-答辩状 ]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.BIZ_TYPE)长度不能超过{max}")
    @NotNull(message = "请填写业务类型")
    private String bizType;

    /**
     * 案件类别;[01-贷款 99-其它]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.CASE_TYPE)
     */
    @Schema(description = "案件类别")
    @NotNull(message = "请填写案件类别")
    @Size(max = 50, message = "案件类别长度不能超过{max}")
    private String caseType;

    /**
     * 组件ID
     */
    @Schema(description = "组件ID")
    private String componentId;
    /**
     * 组件标识
     */
    @Schema(description = "组件标识")
    @Size(max = 100, message = "组件标识长度不能超过{max}")
    private String componentCode;

    /**
     * 组件列表
     */
    @Schema(description = "组件列表")
    @Size(min = 1, message = "请选择组件")
    private List<EvidenceComponentResultVO> componentList;
}
